# Contributor: Miles Alan <m@milesalan.com>
# Maintainer: Miles Alan <m@milesalan.com>
pkgname=moon-buggy
pkgver=1.0.51
pkgrel=1
pkgdesc="Simple character graphics game where you drive some kind of car across the moon's surface"
url="https://www.seehuhn.de/pages/moon-buggy.html"
license="GPL-2.0-or-later"
arch="all"
makedepends="ncurses-dev"
subpackages="$pkgname-doc"
source="https://m.seehuhn.de/programs/moon-buggy-$pkgver.tar.gz
	skip-install-data-hook.patch
	"
options="!check" # no test suite

prepare() {
	default_prepare
	update_config_sub
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--sharedstatedir=/var/games
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
34da2ca8b79d4f95a762cb7142586d176fd1b58ea6f4375de424d73d6046c2dc3dbae30dddb3a78c8c2563fbfec01d9eaafe27b79cc78ffa22121ad5a2e9dc77  moon-buggy-1.0.51.tar.gz
e5a61910c2aded4316e3adf424d65def61822509c919cbb0a2040564270b8b81f9eb64ed581d95bb5b41cc348dc7b29c6f817c21e8fb5d65382288e4a2750abc  skip-install-data-hook.patch
"
